package com.bdqn.text;

public class TestRest {
    public static void main(String[] args) {
        int days;//租聘天数
        int totalRent;//总租聘费用
        MotoVehicle motos[]=new MotoVehicle[4];
        motos[0]=new Car("京  NY28588","宝马","550i");
        motos[1]=new Car("京NNN3284","宝马","550i");
        motos[2]=new Car("京NT43765","别克","林荫大道");
        motos[3]=new Bus("京5643765","金龙",34);
        days=5;
        //2.计算总租聘费用
        Customer customer=new Customer("s070537","吴家伟");
        totalRent=customer.calcTotalRent(motos,days);
        //输出客户姓名和总租聘费用
        System.out.println("汽车牌号\t\t汽车品牌");
        for(int i=0;i<motos.length;i++){
            System.out.println(motos[i].getNo()+"\t"+motos[i].getBrand());
        }
        System.out.println("\n客户名:"+customer.getName()+",租聘天数:"+days
        +",租聘费用:"+totalRent+",");
    }
}
